<?php
/**需要验证登录token的路由 start  **/
Route::group(['middleware' => ['web_auth:web_api']], function () {

    Route::get('use-coupon-list', ['as' => 'use_coupon_list', 'uses' => 'CouponController@use_coupon_list']);  //商户获取用户已使用的优惠券列表【ok】
    Route::post('coupon_detail', ['as' => 'coupon_detail', 'uses' => 'CouponController@coupon_detail']);  //商户端扫码获得参数后  携带参数请求的数据【ok】
    Route::post('coupon_use', ['as' => 'coupon_use', 'uses' => 'CouponController@coupon_use']);//商户端扫码的数据后， 点击使用修改优惠券的状态【ok】



    Route::get('get-user_activity-list', ['as' => 'activity_list', 'uses' => 'ShopController@activity_list']);  //获取当前门店指定用户的参与的活动列表【ok】
    Route::get('get-store_order-list', ['as' => 'store_order_list', 'uses' => 'ShopController@store_order_list']);  //获取当前门店指定用户的普通（含活动）订单信息【ok】
    Route::get('get-repairstore-order-list', ['as' => 'repairstore_order_list', 'uses' => 'ShopController@repairstore_order_list']);  //获取当前门店指定用户的服务订单信息【ok】
    Route::get('get-checkpoint-order-list', ['as' => 'checkpoint_order_list', 'uses' => 'ShopController@checkpoint_order_list']);  //获取当前门店指定用户的预约订单信息


    //活动模块
    Route::get('get-activity-list', ['as' => 'activity_list', 'uses' => 'ActivityController@list']); //获取活动列表【ok】
    Route::post('activity_store', ['as' => 'activity_store', 'uses' => 'ActivityController@store']); //添加活动信息【ok】
    Route::get('get-activity-shops-list', ['as' => 'get_activity_shops_list', 'uses' => 'ActivityController@get_shops_list']); //获取活动的商品列表【ok】
    Route::post('activity-goods-store', ['as' => 'activity_goods_store', 'uses' => 'ActivityController@activity_goods_store']); //添加、编辑活动的商品【ok】
    Route::get('get-shops-list-to-module', ['as' => 'activity_goods_module', 'uses' => 'ActivityController@activity_goods_module']); //获取模块已添加的商品【ok】
    Route::delete('activity-delete', ['as' => 'activity_delete', 'uses' => 'ActivityController@delete']); //删除活动【ok】
    Route::get('get-activity-detail', ['as' => 'activity_detail', 'uses' => 'ActivityController@activity_detail']); //获取指定活动信息【ok】
    Route::post('activity-update', ['as' => 'activity_update', 'uses' => 'ActivityController@activity_update']); //编辑活动信息【ok】
    Route::get('get-activity-module', ['as' => 'activity_module', 'uses' => 'ActivityController@activity_module']); //获取指定活动的模块列表信息
    Route::post('active-push-user', ['as' => 'push_user', 'uses' => 'ActivityController@push_user']); //手动  活动推送给用户
    Route::post('active-timing-push-user', ['as' => 'timing_push_user', 'uses' => 'ActivityController@timing_push_user']); //活动定时推送给用户
    Route::delete('active-del-push-user', ['as' => 'del_push_user', 'uses' => 'ActivityController@del_push_user']); //动取消活定时推送给用户


    //门店管理  申请
    Route::get('get-shop-detail', ['as' => 'shop_detail', 'uses' => 'ShopController@shop_detail']); //获取门店的基本信息【ok】
    Route::post('shop-modity-store', ['as' => 'shop_modity_store', 'uses' => 'ShopModifyController@shop_modity_store']); //申请变更门店的信息【ok】
    Route::get('get-shop-server_type_list', ['as' => 'server_type_list', 'uses' => 'ShopController@server_type_list']); //获取服务类型列表【ok】
    Route::post('shop-update', ['as' => 'shop_update', 'uses' => 'ShopController@shop_update']); //修改门店的基本信息

    Route::get('get-shop-master', ['as' => 'shop_master', 'uses' => 'ShopMasterController@shop_master']); //获取门店的技师列表
    Route::get('get-shop-master-detail', ['as' => 'shop_master_detail', 'uses' => 'ShopMasterController@shop_master_detail']); //获取指定的技师信息
    Route::post('shop-master-store', ['as' => 'shop_master_store', 'uses' => 'ShopMasterController@shop_master_store']); //添加保存技师信息
    Route::post('shop-master-update', ['as' => 'shop_master_update', 'uses' => 'ShopMasterController@shop_master_update']); //编辑保存技师信息
    Route::delete('get-shop-master-del', ['as' => 'shop_master_del', 'uses' => 'ShopMasterController@shop_master_del']); //删除指定的技师

    Route::get('shop-users-apprise-detail', ['as' => 'shop_users_apprise_detail', 'uses' => 'GoodsController@users_apprise_detail']); //获取指定商品的评论

    //融云
    Route::get('rong-getToken', ['as' => 'rong_getToken', 'uses' => 'RongController@getToken']);  //获取指定登录用户的token
    Route::get('rong-userRefresh', ['as' => 'rong_userRefresh', 'uses' => 'RongController@userRefresh']);   //更新指定用户的信息
    Route::post('rong-message-push', ['as' => 'message_push', 'uses' => 'RongController@messagePush']);     //用户发送消息
    Route::post('rong-online', ['as' => 'online', 'uses' => 'RongController@online']);      //检测指定用户是否在线
    Route::post('rong-push', ['as' => 'push', 'uses' => 'RongController@push']);


});

Route::get('get-address_list', ['as' => 'get_address_list', 'uses' => 'PublicController@get_address_list']); //获取所有省市区列表
Route::get('get_banner', ['as' => 'get_banner', 'uses' => 'WebController@get_banner']);


Route::get('get-user-info', ['as' => 'user_info', 'uses' => 'ShopController@user_info']);//获取指定用户的详细信息
Route::get('get-user-rong-cloud-id', ['as' => 'get_user_rong_cloud_id', 'uses' => 'ShopController@get_rong_cloud_id']);//获取用户的rong_cloud_id




